﻿function Cancel() {
    location.href = 'List.aspx';
}

function Cancel_M() {
    location.href = 'List_Manager.aspx';
}

function Cancel_AG() {
    location.href = 'List_Agent.aspx';
}

function GetParameter(param) {
    var query = window.location.search;
    var iLen = param.length;
    var iStart = query.indexOf(param);

    if (iStart == -1) {
        return "";
    }
    //取得开始搜索的位置。
    iStart += iLen + 1;
    var iEnd = query.indexOf("&", iStart);
    //如果只有一个参数传进来
    if (iEnd == -1) {
        return query.substring(iStart);
    }
    else {
        return query.substring(iStart, iEnd);
    }
}


